package com.meilai.project.controller.mini.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MiniSimpleObjForSourceDTO {
    private Long id;
    private String name;
    private Integer type;

    private Long mtId;

    private BigDecimal min;
    private BigDecimal max;

    private Long classify_id;
    private String classify_name;

    private Set<Long> mtIds = new HashSet<>(); // 针对分类

    private Long source_id; // 入参所用

    public MiniSimpleObjForSourceDTO(Long id, String name, Integer type) {
        this.id = id;
        this.name = name;
        this.type = type;
    }

    public MiniSimpleObjForSourceDTO(Long id, String name, Integer type, BigDecimal min, BigDecimal max) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.min = min;
        this.max = max;
    }

    public MiniSimpleObjForSourceDTO(Long id, String name, Integer type, Long classify_id, String classify_name) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.classify_id = classify_id;
        this.classify_name = classify_name;
    }

    public MiniSimpleObjForSourceDTO(Long id, String name, Integer type, Long classify_id, String classify_name, Set<Long> mtIds) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.classify_id = classify_id;
        this.classify_name = classify_name;
        this.mtIds = mtIds;
    }
}
